<template>
  <div>我是子组件</div>
</template>
<script setup>
import { ref } from 'vue'

const xxx = ref(999)
const fn = () => {
  console.log('我是子组件fn')
}
// defineExpose({fn})
defineExpose({ fn, xxx })
</script>
<style></style>
